package com.kintreda.ieco_server.module.organization.service;

import com.kintreda.ieco_server.bean.account.Organization;
import com.kintreda.ieco_server.core.service.IBaseService;

import java.util.List;

/**
 * @Created by IntelliJ IDEA
 * @Project_Name ieco_server
 * @Package com.kintreda.ieco_server.module.organization.service
 * @Author ZhongYao_H
 * @Date 2019/4/28:17:34
 * @Year 2019 Month 04 Day 28
 * @Date_zh 2019 年 四月 星期日
 */
public interface IOrganizationService extends IBaseService <Organization,String> {

    List<Organization> queryByChild(String current );

    Organization getByAndminId(String adminId);

    /**
     * 机构是否存在
     * @return
     */
    Boolean isExist(String name);


    Organization getTop(Integer top);

    /**
     * 判断用户是否在申请中
     *
     * @param userId
     * @return
     */
    Boolean isApply(String userId,Integer status);


    /**
     *
     *
     * 根据邀请码查询机构
     */
    Organization findByCode(String code);

    List<Organization> getListByOrgId(String orgId);


    Organization getOrgByAdminIdAndOrgStatus(String adminId);

}
